﻿using UnityEngine;
using System.Collections;

public class AttackRange : MonoBehaviour {

	public bool inAttackRange;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnTriggerStay2D(Collider2D other) {
		if (other.tag == "Player") {
			inAttackRange = true;
		}
	}
	
	void OnTriggerExit2D(Collider2D other) {
		if (other.tag == "Player") {
			inAttackRange = false;
		}
	}
}
